projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
51d4efd
)
gdk_pixmap_new - drawable may be NULL
author
Alexander Larsson
<alexl@redhat.com>
Thu, 4 Dec 2008 21:24:07 +0000
(22:24 +0100)
committer
Alexander Larsson
<alex@localhost.localdomain>
Thu, 2 Apr 2009 08:14:06 +0000
(10:14 +0200)
gdk/gdkpixmap.c
patch
|
blob
|
history
diff --git
a/gdk/gdkpixmap.c
b/gdk/gdkpixmap.c
index be1d3a2d41a290093a0973cd53dd9c18e4fcd25c..2b6e0739d13cf583b9d3b3cb103ca9c655a73b7f 100644
(file)
--- a/
gdk/gdkpixmap.c
+++ b/
gdk/gdkpixmap.c
@@
-237,7
+237,10
@@
gdk_pixmap_new (GdkDrawable *drawable,
{
GdkDrawable *source_drawable;
- source_drawable = _gdk_drawable_get_source_drawable (drawable);
+ if (drawable)
+ source_drawable = _gdk_drawable_get_source_drawable (drawable);
+ else
+ source_drawable = NULL;
return _gdk_pixmap_new (source_drawable, width, height, depth);
}